import request from '@/utils/request'

// 查询门店客流数据列表
export function listPassengerFlowData(query) {
  return request({
    url: '/energize/passengerFlowData/list',
    method: 'get',
    params: query
  })
}

// 查询门店客流数据详细
export function getPassengerFlowData(id) {
  return request({
    url: '/energize/passengerFlowData/' + id,
    method: 'get'
  })
}

// 新增门店客流数据
export function addPassengerFlowData(data) {
  return request({
    url: '/energize/passengerFlowData',
    method: 'post',
    data: data
  })
}

// 修改门店客流数据
export function updatePassengerFlowData(data) {
  return request({
    url: '/energize/passengerFlowData',
    method: 'put',
    data: data
  })
}

// 删除门店客流数据
export function delPassengerFlowData(id) {
  return request({
    url: '/energize/passengerFlowData/' + id,
    method: 'delete'
  })
}
